package com.zzb.auth.controller;

import com.zzb.base.model.RestResponse;
import com.zzb.ucenter.model.dto.XcUserAdd;
import com.zzb.ucenter.service.XcUserRegister;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zzb
 * @Date 2024/7/27 13:24
 * @Version 1.0
 * @description
 */
@RestController
public class XcUserController {
    @Autowired
    private XcUserRegister xcUserRegister;

    @RequestMapping(value = "/register")
    public RestResponse<Boolean> register(@RequestBody XcUserAdd xcUserAdd) {
        boolean isRegister = xcUserRegister.register(xcUserAdd);
        return RestResponse.ok(isRegister);
    }


}
